﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("------任务类------");
            TaskNpc one = new TaskNpc("张良", NpcType.task, "送信");
            Game(one);
            TaskNpc two = new TaskNpc("李白", NpcType.task, "杀怪");
            Game(two);
            TaskNpc three = new TaskNpc("阿古朵", NpcType.task, "采集");
            Game(three);
            Console.ReadKey();

            Console.WriteLine("------商贩类------");
            ShopNpc four = new ShopNpc("程咬金", NpcType.shop, "武器");
            Game(four);
            ShopNpc five = new ShopNpc("金属", NpcType.shop, "材料");
            Game(five);
            ShopNpc six = new ShopNpc("西瓜", NpcType.shop, "食物");
            Game(six);
            Console.ReadKey();

            Console.WriteLine("--------铁匠类-------");
            BlacksmithNpc seven = new BlacksmithNpc("蔡文姬", NpcType.blacksmith, "修补");
            Game(seven);
            BlacksmithNpc eight = new BlacksmithNpc("明世隐", NpcType.blacksmith, "强化");
            Game(eight);
            BlacksmithNpc nine = new BlacksmithNpc("刘禅", NpcType.blacksmith, "打造");
            Game(nine);
            Console.ReadKey();


        }
        public static void Game(Npc c)
        {
            c.Speak();
        }
    }
}
